<?php
/**
 * 成果展示
 */
class ResultApp extends CommonApp {

    //优秀创业项目展示
    public function eventAct(){
    	$result = self::getList('event');
    	self::assign_seo('event');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('event'));
        $this->display('Common/index');
    }
   
    //优秀创业团队展示
    public function teamAct(){
        $result = self::getList('team');
    	self::assign_seo('team');
        $this->assign('result',$result);
        $this->assign('menu',self::menu('team'));
        $this->display('Common/index');
    }
    //详情
    public function detailAct(){
        $id = I('get.id');
        if(!My::is_id($id))
            $this->ajaxReturn(404,'文章详情ID有误!');
        // $item = My::arr2var($_REQUEST,'item');
        $result = self::detail($id);
        $this->assign('result',$result);
        $this->assign('menu',self::menu($result['item']));
        $this->display('Common/detail');
    }
}